﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TicketMaster.Object
{
    public class Seat
    {
        [Key]
        public int Id { get; set; }

        [Required]
        public decimal Price { get; set; }

        [Required]
        public bool IsFree { get; set; }

        [Required]
        public int SeatNumber { get; set; }

        public int BusId { get; set; }

        [Required]
        public virtual Bus Bus { get; set; }
    }
}
